import Vue from 'vue'
import App from './App.vue'
import router from './router'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import axios from 'axios'
//使用axios
Vue.prototype.$axios=axios
Vue.config.productionTip = false
Vue.use(ElementUI);
//解决跳转路由之后不会回到顶部问题
router.afterEach(() => {
  window.scrollTo(0,0); //切换路由之后滚动条始终在最顶部
});
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
